package com.moduls.interfaceFunction.excel.export;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;import com.moduls.interfaceFunction.util.StringUtil;

/**
 * 商品导出
 * @author pc
 *
 */
public class ItemBean {

	private String sku_id;
	private String catalog_name_parent;
	private String catalog_name;
	private String item_name;
	private String ordid;
	private String deadline;
	private String status;
	private String val_names;
	private String unit;
	private String uniform_price;
	
	public ItemBean() {
		
	}
    public ItemBean(Map<String, Object> map) {
    	if (!(map.get("sku_id") == null || map.get("sku_id").equals(""))) {
    		this.sku_id = map.get("sku_id").toString();
		}
    	if (!(map.get("catalog_name_parent") == null || map.get("catalog_name_parent").equals(""))) {
    		this.catalog_name_parent = map.get("catalog_name_parent").toString();
		}
    	if (!(map.get("catalog_name") == null || map.get("catalog_name").equals(""))) {
    		this.catalog_name = map.get("catalog_name").toString();
		}
    	if (!(map.get("item_name") == null || map.get("item_name").equals(""))) {
    		this.item_name = map.get("item_name").toString();
		}
    	if (!(map.get("ordid") == null || map.get("ordid").equals(""))) {
    		this.ordid = map.get("ordid").toString();
		}
    	if (!(map.get("deadline") == null || map.get("deadline").equals(""))) {
    		this.deadline = map.get("deadline").toString();
		}
    	if (!(map.get("status") == null || map.get("status").equals(""))) {
    		this.status = map.get("status").toString();
		}
    	if (!(map.get("val_names") == null || map.get("val_names").equals(""))) {
    		this.val_names = map.get("val_names").toString();
		}
    	if (!(map.get("unit") == null || map.get("unit").equals(""))) {
    		this.unit = map.get("unit").toString();
		}
    	if (!(map.get("uniform_price") == null || map.get("uniform_price").equals(""))) {
    		this.uniform_price = map.get("uniform_price").toString();
		}
		
	}
    
	public static List<ItemBean> getBean(List<Map<String, Object>> list) {
		List<ItemBean> itemBeans = null;
		if (list != null && list.size() > 0) {
			itemBeans = new ArrayList<>();
			for (Map<String, Object> map : list) {
				itemBeans.add(new ItemBean(map));
			}
		}
		return itemBeans;
	}
    
	public String getSku_id() {
		return sku_id;
	}
	public void setSku_id(String sku_id) {
		this.sku_id = sku_id;
	}
	public String getCatalog_name_parent() {
		return catalog_name_parent;
	}
	public void setCatalog_name_parent(String catalog_name_parent) {
		this.catalog_name_parent = catalog_name_parent;
	}
	public String getCatalog_name() {
		return catalog_name;
	}
	public void setCatalog_name(String catalog_name) {
		this.catalog_name = catalog_name;
	}
	public String getItem_name() {
		return item_name;
	}
	public void setItem_name(String item_name) {
		this.item_name = item_name;
	}
	public String getOrdid() {
		return ordid;
	}
	public void setOrdid(String ordid) {
		this.ordid = ordid;
	}
	public String getDeadline() {
		return deadline;
	}
	public void setDeadline(String deadline) {
		this.deadline = deadline;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getVal_names() {
		return val_names;
	}
	public void setVal_names(String val_names) {
		this.val_names = val_names;
	}
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public String getUniform_price() {
		return uniform_price;
	}
	public void setUniform_price(String uniform_price) {
		this.uniform_price = uniform_price;
	}
}
